﻿<navigation:Page x:Class="Wintellect.Touch.MultiManipulatePage" 
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
                 xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
                 xmlns:Touch="clr-namespace:Wintellect.Touch;assembly=Wintellect.Touch" 
                 mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="600"
                 Title="MultiManipulatePage Page">
    <Grid x:Name="LayoutRoot" Background="White">
        <Rectangle x:Name="RedRect" Width="200" Height="200" Fill="Red">
            <Rectangle.RenderTransform>
                <TranslateTransform Y="-200"/>
            </Rectangle.RenderTransform>
            <i:Interaction.Behaviors>
                <Touch:Manipulate2DBehavior  
                    IsInertial="True"
                    ManipulationStarted="TouchShapeBehavior_ManipulationStarted" 
                    ManipulationDelta="TouchShapeBehavior_ManipulationDelta"
                    ManipulationCompleted="TouchShapeBehavior_ManipulationCompleted"/>
            </i:Interaction.Behaviors>
        </Rectangle>
        <Ellipse x:Name="BlueCircle" Width="200" Height="200" Fill="Blue">
            <Ellipse.RenderTransform>
                <TranslateTransform Y="200" />
            </Ellipse.RenderTransform>
            <i:Interaction.Behaviors>
                <Touch:Manipulate2DBehavior 
                    IsInertial="True"
                    ManipulationStarted="TouchShapeBehavior_ManipulationStarted" 
                    ManipulationDelta="TouchShapeBehavior_ManipulationDelta"
                    ManipulationCompleted="TouchShapeBehavior_ManipulationCompleted"/>
            </i:Interaction.Behaviors>
        </Ellipse>
    </Grid>
</navigation:Page>
